package cn.lg.soar.core.handler.log;


import cn.lg.soar.common.model.LogDTO;
import org.springframework.context.annotation.Lazy;

import java.util.Collection;

/**
 * 日志收集接口默认实现
 * @author luguoxiang
 * @date 2021-08-11
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Lazy
public class DefaultOperationLogSaveService implements IOperationLogSaveService {

    /**
     * 保存操作日志到数据库
     * @param logs
     */
    public void saveLog(Collection<? extends LogDTO> logs) {
        logs.forEach(LogDTO::print);
    }

}
